/*
 * @Author: HeAo
 * @Date: 2021-12-27 17:20:43
 * @LastEditTime: 2021-12-27 17:27:31
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \study\day02\12-箭头函数.js
 * 别乱动！
 */
let myFun1 = function () {
  console.log('普通函数');
}
let myFun2 = () => {
  console.log('箭头函数');
}
myFun1()
myFun2()
let arr = ['zhangsan', 'lisi']
arr.forEach((item, index) => {
  console.log(item);
})

let name = 'zhangsan'
let age = 12
// 对象的key和value对应的变量名重名时，可以省略key
let obj = {
  name,
  age
}
